LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 10-24-2009, 04:34 PM   #1
dumbcoder
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Angry [help] try to build loadable .ko file for a specific kernel (2.6.24-1-486)


In my project, I am trying to build a loadable .ko file for a Linux box with specific linux kernel (uname -r result is 2.6.24-1-486) installed on it.
This Linux box contains no directory named /lib/modules/2.6.24-1-486/build; it contains no related kernel header files for its 2.6.24-1-486 kernel. The remaining docs of it say that some test/unstable Debian release with 2.6.24 kernel may be OK to produce loadable .ko kernel modules for it.
I tried several 2.6.24 kernels, and just got the version verifying failure info below:
# insmod my_kernel_mod.ko
insmod: error inserting 'my_kernel_mod.ko': -1 Invalid module format
# dmesg|tail
my_kernel_mod: disagrees about version of symbol struct_module
my_kernel_mod: disagrees about version of symbol struct_module

Thus, I think I do need the Linux kernel source files (or just header files) with specific kernel version: 2.6.24-1-486. But, I cannot find this kind of 2.6.24-1-486 stuffs, event after I visit the www.kernel.org/ and www.debian.org/.

Does any know how to download the Linux kernel source files (or just header files) with specific kernel version 2.6.24-1-486??

Thanks a lot in advance.
 
Old 10-26-2009, 08:52 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,297

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Welcome to LQ.

An available source package can be e.g.
linux-headers-2.6.24-etchnhalf.1-486

.. which means, you will have to update your
kernel to a version , also available as source
like ' linux-image-2.6.24-etchnhalf.1-486 '.

Not all old 'linux-image's have a source counterpart.
Some were used for a very short time, then updated
for various reasons.
.....

Just do : 1) su
2) apt-get install linux-image
.....

Last edited by knudfl; 10-26-2009 at 08:54 AM.
 
Old 11-06-2009, 07:15 PM   #3
yaplej
Member
 
Registered: Apr 2009
Distribution: CentOS, Ubuntu
Posts: 119
Blog Entries: 1

Rep: Reputation: 22
I have been developing on CentOS, and to get the kernel headers to setup a working enviroment I run this. I actually think I stopped at gcc because it has kernel-headers as a dependancy.

yum install eclipse-platform
yum install kernel-devel
yum install gcc
yum install kernel-headers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Kernel Newbie Corner: Loadable Kernel Modules, Coming and Going LXer Syndicated Linux News 0 07-08-2009 08:00 PM
reboot kernel from kernel from loadable module ? jeff price Linux - Kernel 1 01-11-2007 05:22 AM
kernel version 2.4 loadable kernel module mhuman1 Linux - Kernel 2 05-11-2006 01:08 PM
Kernel Build config file Igor007 Programming 1 08-14-2005 02:39 PM
trying to build 486 freesco router box jgams Linux - Networking 1 12-04-2004 04:01 AM


All times are GMT -5. The time now is 07:44 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration